package com.sh.data.engine.domain.dataasset.service;

import com.sh.data.engine.domain.dataasset.model.domain.FactDetailInfoDomain;
import com.sh.data.engine.domain.shims.db.BaseDbManager;

import java.util.List;

/**
 * @Version 1.0 @Author:xinyan @Date:2022/6/12 @Content:
 */
public interface TableFactOperationStrategy {
    List<FactDetailInfoDomain.FieldInfo> getTableField(
        String dbName, String schema, String tableName, BaseDbManager dbManager);

    default void closeDbManager(BaseDbManager dbManager) {
        if (null != dbManager) {
            dbManager.close();
        }
    }
}
